import request from '@/utils/request'

// 上传图片
export function uploadImage(data: any) {
  return request({
    url: '/api/images/upload',
    method: 'post',
    data,
  })
}

// 上传base64图片
export function uploadBase64Image(data: any) {
  return request({
    url: '/api/images/upload-base64',
    method: 'post',
    data,
  })
}
